package com.zhang.sequencegenerate.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Description
 * @Author Mr.Zhang
 * @Date 2025/5/25 21:01
 * @Version 1.0
 */
@Data
@TableName("sequence_record")
public class SequenceRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 序列编码
     */
    @TableField(value = "sequence_key")
    private String sequenceKey;

    /**
     * 序列值
     */
    @TableField(value = "sequence_value")
    private Long sequenceValue;
}
